# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=ssh-import-id
pkgver=5.11
pkgrel=2
pkgdesc="Import SSH public keys from Github and Launchpad"
url="https://launchpad.net/ssh-import-id"
arch="noarch"
license="GPL-3.0-only"
depends="
	py3-distro
	"
makedepends="
	py3-setuptools
	"
subpackages="
	$pkgname-doc
	$pkgname-pyc
	"
source="https://launchpad.net/ssh-import-id/trunk/$pkgver/+download/ssh-import-id-$pkgver.tar.gz"
options="!check" # There are no testcases

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"

	install -Dm644 \
		usr/share/man/man1/ssh-import-id.1 \
		-t "$pkgdir"/usr/share/man/man1/

	install -Dm644 \
		README \
		-t "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
49703b8b9c127f13bf0626fd013318b9498ec8a67a060fb7607c7a1894da3e3e3e7e995c9b68af8375237f4031d06abda20f2a9a73a1fabbe33055f2f434716b  ssh-import-id-5.11.tar.gz
"
